package mju.cxf.dto;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author 王鑫
 * @since 2024-10-08
 */

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigInteger;
import java.time.LocalDateTime;


@ApiModel(description = "商品数据传输对象")
@Data
public class ProductDTO {

    @ApiModelProperty(value = "商品id")
    private Integer id;         // ID

    @ApiModelProperty(value = "item_id" ,example = "E12345")
    private BigInteger itemId;     // 商品编号

    @ApiModelProperty(value = "image_url")
    private String imageUrl;     // 商品图片

    @ApiModelProperty(value = "name",example = "肯德基汉堡卷")
    private String name;        // 商品名称

    @ApiModelProperty(value = "state",example = "0")
    private Integer state;      // 商品状态（0为已上架，1为未上架）

    @ApiModelProperty(value = "deleted",example = "1")
    private Integer deleted;    // 逻辑删除

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人ID")
    private Integer createUser;

    @ApiModelProperty(value = "创建人名称")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "修改人ID")
    private Integer updateUser;

    @ApiModelProperty(value = "修改人名称")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "分类ID")
    @TableField("categories_id")
    private Integer categoriesId;

    @ApiModelProperty("count")
    private Integer count; //商品数量

    @ApiModelProperty("userId")
    private Integer userId; //购买用户id
}
